<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/js/themes/default/easyui.css">
<link rel="stylesheet" type="text/css"
	href="<%=request.getContextPath()%>/js/themes/icon.css">
<script src="<%=request.getContextPath()%>/js/easyloader.js"
	type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/jquery-1.7.2.min.js"
	type="text/javascript"></script>
<script src="<%=request.getContextPath()%>/js/jquery.easyui.min.js"
	type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	$('#authuser').datagrid({
		title:'',
		width:'400',
		height:'400',
		nowrap: false,
		striped: true,
		collapsible:true,
		frozenColumns:[[
					    {field:'opt',checkbox:true}
		]],
		url:'<%=request.getContextPath()%>/MainServlet',
		toolbar: [{
            text: '回复使用',
            iconCls: 'icon-edit',
            handler: function () {
			   var selected = $('#authuser').datagrid('getSelected');
			   if (selected) {
				    alert(selected.mac);
					document.forms[0].action = "<%=request.getContextPath()%>/ResumeServlet?mac=" + selected.mac;
					document.forms[0].submit();
			   }
			}
		}],
		remoteSort : false,
		singleSelect : true,
		onClickRow : function(rowIndex) {
		}
	});

	});
</script>
</head>
<body>
	<h2>认证用户列表</h2>
	<table id="authuser">
		<thead>
			<tr>
				<td field="opt" width="20px"></td>
				<th field="mac" width="100px">MAC</th>
				<th field="ip" width="100px">IP</th>
				<th field="ssid" width="100px">SSID</th>
			</tr>
		</thead>
	</table>

    <form action="" method="post">
    </form>
</body>
</html>